//
//  Select_listTableView.m
//  hello
//
//  Created by 查传申 on 16/11/17.
//  Copyright © 2016年 查传申. All rights reserved.
//

#import "Select_listTableView.h"

@implementation Select_listTableView
-(id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style Arr:(NSMutableArray *)arr number:(NSInteger)num{
    self = [super initWithFrame:frame style:style];
    if (self) {
   
        self.dataSource = self;
        self.delegate = self;
        [self tableView_foot:self];
        
        [self registerClass:[UITableViewCell class] forCellReuseIdentifier:@"reuse"];
        
    }
    return self;
}
-(void)tableView_foot:(UITableView *)tabelV{
    UIView *view_foot = [UIView new];
    view_foot.backgroundColor = [UIColor clearColor];
    tabelV.backgroundColor = [UIColor lightGrayColor];
    tabelV.tableFooterView = view_foot;
    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 10;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuse"];
    
    cell.textLabel.text = @"sadasdasd";
    return cell;
    
}

-(CGFloat )tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 44;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
